package com.htudata.transctNode.dao;

import com.alibaba.fastjson.JSONArray;
import com.htudata.transctNode.mapper.TransctLinkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class TransctLinkDao {
  @Autowired
  private TransctLinkMapper linkMapper;
  
  public int deleteTempLinksByFlowId(String flowId) {
    return this.linkMapper.deleteTempLinksByFlowId(flowId);
  }
  
  public int insertLinkToLinkTemp(String flowId) {
    return this.linkMapper.insertLinkToLinkTemp(flowId);
  }
  
  public JSONArray selectLinkAlarmsByFlowId(String flowId) {
    return this.linkMapper.selectLinkAlarmsByFlowId(flowId);
  }
}
